/*
 * Student.cpp
 *
 *  Created on: Mar 6, 2014
 *  Author: NakanPhung
 */

#include "Student.h"

Student::Student() :
		Person() {
	enterYear = 0;
	className = "";
	major = "";
}

Student::Student(int id, string name, string dob, string addr, int enterYear,
		string className, string major) :
		Person(id, name, dob, addr) {
	this->enterYear = enterYear;
	this->className = className;
	this->major = major;

}

/**
 * void setEnterYear
 * @parama: int enterYear
 */
void Student::setEnterYear(int enterYear) {
	this->enterYear = enterYear;
}

/**
 * void setClassName
 * @parama: int enterYear
 */
void Student::setClassName(string className) {
	this->className = className;
}

/**
 * void setMajor
 * @parama: int enterYear
 */
void Student::setMajor(string major) {
	this->major = major;
}

/**
 * void getEnterYear
 * @return int
 */
int Student::getEnterYear() {
	return enterYear;
}

/**
 * void getClassName
 * @return string
 */
string Student::getClassName() {
	return className;
}

string Student::getMajor() {
	return major;
}
/**
 * void Print()
 * @dec: to print information about Student
 */
void Student::Print() {

	Person::Print();
	cout << "\nEnterYear: " << enterYear << "\nClassName: " << className.c_str()
			<< "\nMajor: " << major.c_str() << endl;
}

Student::~Student() {

}

